build a chat app with react js